package com.bw.exam;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.gateway.filter.ratelimit.KeyResolver;
import org.springframework.context.annotation.Bean;
import reactor.core.publisher.Mono;

/**
 * @author: liuzhiping
 * @date: 2024/8/25 21:46
 **/
@SpringBootApplication
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class);
    }
//    @Bean
//    public KeyResolver ipKeyResolver(){
//        return exchange -> Mono.just(exchange.getRequest().getRemoteAddress().getHostName());
//    }

}


